<?php

namespace App\Controllers;

use Illuminate\Support\Facades\DB;
use Laravel\Lumen\Routing\Controller;

class BaseController extends Controller
{
    public $allows = [];

    public function __construct()
    {
        // 暂时取消认证
        // $this->middleware('auth', ['except' => $this->allows]);
        if (env('APP_DEBUG') == true) {
            DB::enableQueryLog();
            DB::flushQueryLog();
        }
    }
}
